﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Daily
{
    public partial class Setting : Form
    {
        public Setting()
        {
            InitializeComponent();
        }

        private void textBox1_TextChanged(object sender, EventArgs e)
        {
            ConfigManager.setConfigInfo("Time_H", textBox1.Text);
            
        }

        private void textBox2_TextChanged(object sender, EventArgs e)
        {
            ConfigManager.setConfigInfo("Time_M", textBox2.Text);
        }

        private void Setting_Load(object sender, EventArgs e)
        {
            textBox1.Text = ConfigManager.getConfigInfo("Time_H");
            textBox2.Text = ConfigManager.getConfigInfo("Time_M");
            textBox3.Text = ConfigManager.getConfigInfo("Time_H1");
            textBox4.Text = ConfigManager.getConfigInfo("Time_M1");
        }


        private void TextBox3_TextChanged(object sender, EventArgs e)
        {
            ConfigManager.setConfigInfo("Time_H1", textBox3.Text);
        }

        private void TextBox4_TextChanged(object sender, EventArgs e)
        {
            ConfigManager.setConfigInfo("Time_M1", textBox4.Text);
        }
    }
}
